﻿using MapleLeaf.DataBase.Entity;
using SqlSugar;

namespace MapleLeaf.Model.CookBook.Organization.Entity {
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("sys_user", "用户信息")]
    public class UserEntity : DataEntityBase {
        /// <summary>
        /// 账号
        /// </summary>
        [SugarColumn(ColumnDescription = "账号")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(ColumnDescription = "密码")]
        public string? Password { get; set; } = "123456";
        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(ColumnDescription = "用户名")]
        public string NickName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [SugarColumn(ColumnDescription = "性别")]
        public int? Gender { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [SugarColumn(ColumnDescription = "头像")]
        public string? Avatar { get; set; }
        /// <summary>
        /// 微信OpenId
        /// </summary>
        [SugarColumn(ColumnDescription = "微信OpenId")]
        public string? Openid { get; set; }
        

        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn( ColumnName = "dept_id", ColumnDescription = "部门")]
        public long? DeptId { get; set; } = 0;

        /// <summary>
        /// 联系电话
        /// </summary>
        [SugarColumn(ColumnDescription = "联系电话")]
        public string? Telephone { get; set; }
        /// <summary>
        /// 邮箱地址
        /// </summary>
        [SugarColumn(ColumnDescription = "邮箱地址")]
        public string? Email { get; set; }

    }
}